﻿#region Using directives
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
#endregion

namespace gpsMe.Utils
{
    /// <summary>
    /// Usefull for the LocalFree and LocalAlloc
    /// </summary>
    public class Win32
    {
        public const int LMEM_ZEROINIT = 0x40;
        [System.Runtime.InteropServices.DllImport("coredll.dll", EntryPoint = "#33", SetLastError = true)]
        public static extern IntPtr LocalAlloc(int flags, int byteCount);

        [System.Runtime.InteropServices.DllImport("coredll.dll", EntryPoint = "#36", SetLastError = true)]
        public static extern IntPtr LocalFree(IntPtr hMem);
    }
}
